import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/home.vue'),
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/login.vue'),
    },
    {
      path: '/user',
      name: 'user',
      component: () => import('../views/user.vue'),
    },
    {
      path: '/manage',
      name: 'manage',
      component: () => import('../views/manage.vue'),
    },
    {
      path: '/product/:id',
      name: 'ProductDetails',
      component: () => import('../views/productDetails.vue')
    }
  ],
})

export default router
